
function addTopic() {
	try {
		$("#new_topic").dialog();
	} catch (e) {
		alert(e);
	}
}

function addNote() {
	try {
		$("#new_note").dialog();
	} catch (e) {
		alert(e);
	}
}

function about() {
	try {
		$("#about").dialog();
	} catch (e) {
		alert(e);
	}
}

function cancel() {
	try {
		$("#new_topic").dialog('close');
		$("#new_note").dialog('close');
		$("#about").dialog('close');
	} catch (e) {
		alert(e);
	}
}

function displayMindMap(){
	try{
		if($("#columns").css('display') == 'none'){
			$("#mind-mapping").css('display', 'none');
			$("#columns").css('display', 'block');
		}
		
		else{
			$("#columns").css('display', 'none');
			$("#mind-mapping").css('display', 'block');
		}
		
	}catch(e){
		;
	}
	
}